/*
 *
 * Created on: 07.10.2012
 *
 * test.h
 * This file is part of KOBUS
 * 
 * Copyright (C) 2012 - Ivan Penkin, MIPT
 * grek.penkin@gmail.com
 *
 * KOBUS is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * KOBUS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with KOBUS; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, 
 * Boston, MA  02110-1301  USA
 *  
 */

#ifndef TEST_H_
#define TEST_H_

#include <KobusCommon.h>

using namespace kobus;

class TestSerialize: public QSerializable
{
    Q_OBJECT

    //KOBUS_SERIALIZABLE(TestSerialize);

    Q_PROPERTY(QString name READ getName WRITE setName);
    Q_PROPERTY(qint32 intVal READ getInt WRITE setInt);

  public:
    TestSerialize(QObject * parent = 0)
            :QSerializable(parent) {

        }

    virtual
    ~TestSerialize() {

    }

    QString & getName() {

      return d_name;
    }

    qint32 getInt() {

      return d_intVal;
    }

    void setName(const QString & name) {

      d_name = name;
    }

    void setInt(qint32 i) {

      d_intVal = i;
    }

  private:
    QString d_name;
    qint32  d_intVal;
};

#endif /* TEST_H_ */
